package com.sctvcloud.renhe.beans;

import android.support.annotation.NonNull;

import com.ruihang.generalibrary.ui.util.IListData;
import com.sctvcloud.renhe.ui.util.IListShowData;

import java.io.Serializable;
import java.util.List;

/**
 * Created by yuxipan on 2018-02-07.
 */

public class GovDetailBean implements Comparable<GovDetailBean>,Serializable {

   private String institutionId;
   private String institutionName;
   private String institutionImage;
   private List<NewsItem> dataList;
   private boolean isSubscibe;//是否已订阅
   private String hot;
   private String shareUrl;
   private int type; // 1代表订阅 0代表未订阅
   private int pageIndex;
   private int pageAll;
   private String qrcodeImg;

    public String getQrcodeImg() {
        return qrcodeImg;
    }

    public void setQrcodeImg(String qrcodeImg) {
        this.qrcodeImg = qrcodeImg;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageAll() {
        return pageAll;
    }

    public void setPageAll(int pageAll) {
        this.pageAll = pageAll;
    }

    public String getHot() {
        return hot;
    }

    public void setHot(String hot) {
        this.hot = hot;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isSubscibe() {
        return isSubscibe;
    }

    public void setSubscibe(boolean subscibe) {
        isSubscibe = subscibe;
    }

    public String getInstitutionId() {
        return institutionId;
    }

    public void setInstitutionId(String institutionId) {
        this.institutionId = institutionId;
    }

    public String getInstitutionName() {
        return institutionName;
    }

    public void setInstitutionName(String institutionName) {
        this.institutionName = institutionName;
    }

    public String getInstitutionImage() {
        return institutionImage;
    }

    public void setInstitutionImage(String institutionImage) {
        this.institutionImage = institutionImage;
    }

    public List<NewsItem> getDataList() {
        return dataList;
    }

    public void setDataList(List<NewsItem> dataList) {
        this.dataList = dataList;
    }

    public String getShareUrl() {
        return shareUrl;
    }

    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }

    @Override
    public int compareTo(@NonNull GovDetailBean o) {
        int i = o.getType() - this.getType();
        if (i == 0) {
            int i1 = Integer.parseInt(o.getHot());
            int i2 = Integer.parseInt(this.getHot());
            return i1 - i2;
        }
        return i;
    }


}
